<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
		<title>
			<h:outputText value="#{msg.secretary}" />
		</title>
		</head>
		<br />
		<f:event listener="#{secretaryBean.verifyS()}" type="preRenderView"></f:event>
		<h:form>
			<div align="center">
			<h:commandButton
				value="#{msg.createEmployees}" styleClass="button" action="secretaryCreate"/>
			<h:commandButton
				value="#{msg.readEmployees}" styleClass="button" action="secretaryRead"/>
			<h:commandButton
				value="#{msg.dismissEmployee}" styleClass="button" action="secretaryDelete" /> <br></br>
			<h:panelGrid columns="2" styleClass="inner-table login">
				<h:outputText value="#{msg.welcome}:" />
				<h:outputText value="#{loginBean.firstname}" />
				<h:outputText value="#{msg.username}:" ></h:outputText>
				<h:outputText value="#{loginBean.uname}"></h:outputText>
				<h:outputText value="#{msg.lastname}:" ></h:outputText>
				<h:outputText value="#{loginBean.lastname}" ></h:outputText>
				<h:outputText value="#{msg.birthdate}:" ></h:outputText>
				<h:outputText value="#{loginBean.dateofbirth}" ></h:outputText>
				<h:outputText value="#{msg.email}:" ></h:outputText>
				<h:outputText value="#{loginBean.email}" ></h:outputText>
				<h:outputText value="#{msg.salary}:" ></h:outputText>
				<h:outputText value="#{loginBean.salar}" ></h:outputText>
			</h:panelGrid> <br></br>
			<h:commandButton
				value="#{msg.logout}" styleClass="button" action="#{loginBean.logOut()}"/> <br></br>	
				
			<h:messages styleClass ="errorMessage"></h:messages></div>

		</h:form>
	</ui:define>

</ui:composition>

</html>






